<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/js/bootstrap.bundle.min.js"></script>

    <title>Document</title>
    <style>
        *
        {
            margin: 0;
            padding: 0;
            /* 内减模式 */
            box-sizing: border-box;
        }
        body
        {
            background-color: #f3f5f7;
        }
        /* 版心 */
        .wrapper
        {
            width: 1200px;
            margin: 0 auto;
        }
        /* 清除浮动 */
        .clearfix::before,.clearfix::after
        {
            content: "";
            display: table;
        }
        .clearfix::after
        {
            clear: both;
        }
        /* 去除li前面的小点 */
        li
        {
            list-style: none;
        }
        /* 去除链接的下划线 */
        a
        {
            text-decoration: none;
        }

        /* 菜品信息 */
        .window{
            float: left;
            margin: 40px 10% 0px 10%;
            width: 80%;
            background-color: #fff;
        }

        .headline{

            float: left;
            margin-bottom: 20px;
            padding: 18px 0 40px 40px;
            width: 100%;
            height: 50px;
            background-color: #fff;
            box-shadow: 0px 2px 3px 0px rgba(118, 118,118,0.2);
            font: normal 500 25px 楷体;
        }

        .window table{

            width: 100%;
            text-align: center;
            border: 2px solid rgb(207,213,222);
        }

        .window tr{
            height: 60px;
            box-shadow: 0px 2px 3px 0px rgba(118, 118,118,0.1);
        }

        .window td{
            width: 120px;
        }

        .window .one{
            width: 60px;
        }

        .window .two{
            width: 200px;
        }

        .window img{
            cursor: pointer;
        }

        .window .add{
            float: right;
            margin: 50px 200px 0px 0px ;
        }

        button{
            float: right;
            margin: 40px 140px 0 0;
            width: 120px;
            height: 50px;
            background-color: rgb(0,110,255);
            color: #fff;
            border: none;
            cursor: pointer;
            border-radius: 5px;
        }
    </style>
</head>
<body>
<!-- 窗口信息 -->
<div class="headline"> 窗口菜品信息</div>
<div class="window">
    <div class="container mt-3">
        <h2>添加菜品</h2>
        <form th:action="@{/window/adddish}">
            <div class="mb-3 mt-3">
                <label for="bid" class="form-label">商家id:</label>
                <input class="form-control" id="bid" th:value="${bid}" placeholder="" name="bid">
            </div>
            <div class="mb-3 mt-3">
                <label for="name" class="form-label">名称:</label>
                <input class="form-control" id="name" placeholder="" name="name">
            </div>
            <div class="mb-3">
                <label for="price" class="form-label">价格:</label>
                <input class="form-control" id="price" placeholder="" name="price">
            </div>
            <div class="mb-3">
                <label for="time" class="form-label">制作时长:</label>
                <input class="form-control" id="time" placeholder="" name="time">
            </div>
            <button type="submit" class="btn btn-primary">添加</button>
        </form>
    </div>

</div>

</body>
</html>